package com.dale.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dale.common.dto.HotCollectionDto;
import com.dale.entity.HotCollections;
import com.dale.entity.LikeBLog;
import com.dale.mapper.HotCollectionsMapper;
import com.dale.mapper.LikeBlogMapper;
import com.dale.service.HotCollectionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Gyt
 * @create 2021-06-21 - 10:45
 */

@Service
public class HotCollectionServiceImpl extends ServiceImpl<HotCollectionsMapper, HotCollections> implements HotCollectionsService {

    @Autowired
    private HotCollectionsMapper hotCollectionsMapper;

    @Override
    public List<HotCollectionDto> getHotCollections() {
        return hotCollectionsMapper.getHotCollections();
    }

    @Override
    public List<HotCollectionDto> getHotCollectionsByAdmin() {
        return hotCollectionsMapper.getHotCollectionsByAdmin();
    }
}
